using System;
using Ninject;
using Ninject.Modules;
using ODSearchEngine.Lucene;

namespace ODSearchEngine
{
	public class SearchEngineModule : NinjectModule
	{
		#region implemented abstract members of Ninject.Modules.NinjectModule
		public override void Load ()
		{
			this.Bind<ISearchEngine>().To<LuceneSearchEngine>();
			this.Bind<IIndexEngine>().To<LuceneIndexEngine>().InSingletonScope();
		}		
		#endregion
	}
}

